export default function useRefModel<T>(
  props: T,
  propName: Exclude<keyof T, Symbol>,
  emit: Function
): any {
  return computed({
    get: () => props[propName],
    set: (value) => emit(`update:${propName}`, value),
  });
}
